package com.seehope.treeset;

import java.util.Comparator;

public class LengthComparator implements Comparator {
	@Override
	public int compare(Object arg0, Object arg1) {
		String str1 = (String) arg0;
		String str2 = (String) arg1;
		int result = str1.length() - str2.length();
		return result;
	}


}
